package com.xiexiaozhou.helper.core.repository;

import com.xiexiaozhou.helper.core.domain.Customer;
import com.xiexiaozhou.helper.core.domain.Order;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface OrderRepository extends JpaRepository<Order, Long> {

    public Page<Order> findByCustomer(Customer customer, Pageable pageable);

    public List<Order> findByDesignee(Customer customer);
}
